<table width="100%" cellpadding="0" cellspacing="0">
	<tbody>
		<tr bgcolor="#F0F0F0">
		  <td height="40" colspan="2"><h3 style="margin-left:5px">All Projects:&nbsp;<?=$this->projectData['pname']?>&nbsp;<font size="1">(Key: &nbsp;<?=$this->projectData['pkey']?>)</font></h3></td>
		</tr>
		<tr>
			<td width="70%" valign="top">
				<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td>
							<div><b>Project Lead:&nbsp;</b>&nbsp;<?=$this->projectData['lead']?></div>
							<div><b>URL:</b><a href="<?=$this->projectData['url']?>"><?=$this->projectData['url']?></a></div>
							<div><b>Description:</b></div>
							<div><?=$this->projectData['description']?></div>
							<br>
							<div><a href="#">Create new issue in project <?=$this->projectData['pname']?></a></div>
							<div><a href="#">Administor Project</a></div>
						</td>
					</tr>
				</table>
				<br>
				<table width="98%" cellspacing="0" cellpadding="0" align="center">
				<tbody>
					<tr>
						<td>
							<table align="center" border="0" cellpadding="2" cellspacing="0" width="100%" style="border:0px">
								<tbody>
									<tr>
										<td width="1%"><b>Select:</b>&nbsp;</td>
										<td align="center" width="10%"><b><a href="<?=$this->baseUrl()?>/component/index/pid/<?=$this->projectId?>">Open Issues</a></b></td>
										<td align="center" width="10%"><b><a href="<?=$this->baseUrl()?>/project/roadmap/project/<?=$this->projectId?>">Road Map</a></b></td>
										<td align="center" width="10%"><b>Change Log</b></td>
										<td align="center" width="10%"><b>Popular Issues</b></td>
										<td align="center" width="10%"><b>Versions</b></td>
										<td align="center" bgcolor="#bbbbbb" nowrap="nowrap" width="10%">
												&nbsp;<font color="#ffffff"><b>Components</b></font>&nbsp;
										</td>
										<td width="1%">&nbsp;</td>
						
									</tr>
								</tbody>
							</table>
						</td>
				  </tr>
						<tr>
						<td colspan="2">
							<table width="100%" cellspacing="0" style="border:1px solid #bbbbbb">
								<tbody>
									<tr bgcolor="#bbbbbb">
									  <td bgcolor="#F0F0F0"><h2>Components</h3></td>
										<td align="right" bgcolor="#F0F0F0"><b><a href="">Add New Component</a></b>&nbsp;</td>
									</tr>
									<tr>
										<td colspan="2">
											<table width="100%" cellspacing="0">
												<tbody>
													<?php
														$i = 1; 
														foreach ($this->components as $component) {?>
													<tr>
														<td><a href="<?=$this->baseUrl()?>/issue/manage/cid/<?=$component['id']?>">&nbsp;<?=$component['cname']?></a></td>
													</tr>
													<tr>	
														<td>&nbsp;<?=$component['description']?></td>
													<tr>
													<?php  
														$i++;
													}?>
												<tbody>
											</table>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</tbody>
			  </table>
			</td>
		  <td width="30%" valign="top" style="background-color:#fffff0;border:1px solid #bbbbbb">
			<h3 style="margin-left:10px;color:#003366;">Project Summary</h3>
			<?php foreach ($this->projectSummary as $summary) {?>
			<table width="90%" align="center" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td width="1%"><img src="<?=$this->baseUrl().$summary['issueStatusIcon']?>" align="absmiddle" /></td>
                  <td nowrap="">&nbsp;
                      <?=$summary['issuestatus']?></td>
                  <td><?=$summary['c']?></td>
                  <td width="60%"><table width="100%" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="<?=round($summary['c']/$this->totalIssues*100)?>%"><table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                              <td bgcolor="#3c78b5"><a title="22"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a> </td>
                            </tr>
                        </table></td>
                        <td width="<?php echo (100-round($summary['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;
                            <?=round($summary['c']/$this->totalIssues*100)?>
                          %</td>
                      </tr>
                  </table></td>
                </tr>
              </tbody>
            </table>
			<?php } ?>
			  <h3 style="margin-left:10px;color:#003366;">Open Issues</h3>
		    <?php foreach ($this->openIssues as $issue) { ?>
			  <table width="90%" align="center" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td width="1%"><img src="<?=$this->baseUrl().$issue['priorityIcon']?>" align="absmiddle" /></td>
                    <td nowrap="">&nbsp;
                        <?=$issue['priority']?></td>
                    <td><?=$issue['c']?></td>
                    <td width="60%"><table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="<?=round($issue['c']/$this->totalIssues*100)?>"><table cellpadding="0" cellspacing="0" width="100%">
                              <tr>
                                <td bgcolor="#3c78b5"><a title="2"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a> </td>
                              </tr>
                          </table></td>
                          <td width="<?php echo (100-round($issue['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;
                              <?=round($issue['c']/$this->totalIssues*100)?>
                            %</td>
                        </tr>
                    </table></td>
                  </tr>
                </tbody>
              </table>
		    <?php } ?>
			</td>
		</tr>
	</tbody>
</table>